<?php


namespace App\Model;

/**
 * Class MenuModel
 * @package App\Model
 * author:fhc
 * desc:菜单模型
 * created_at: {2020/10/16}----10:51 上午
 */
class MenuModel extends BaseModel
{
    protected $table = 'menu';

    public function pMenu(): \Illuminate\Database\Eloquent\Relations\HasMany
    {
        return $this->hasMany(MenuModel::class,'pid','id');
    }
}
